import axios from '@/libs/api.request'

export const fetchTemplates = params => {
  return axios.request({
    url: '/api/template/getTemplateList',
    method: 'get',
    params
  })
}

export const fetchTableHeaders = params => {
  return axios.request({
    url: '/api/template/getHeaderByTemplateId',
    method: 'get',
    params
  })
}

export const fetchTableFilters = params => {
  return axios.request({
    url: '/api/template/getScreenListByTemplateId',
    method: 'get',
    params
  })
}

export const fetchTables = params => {
  return axios.request({
    url: '/api/template/getListPaged',
    method: 'get',
    params
  })
}
